<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title> 发布新闻 | 新闻网 </title>
</head>
<body>
	<form action="news.do?op=add" method="post">
		标题：<input type="text" name="title">
		<br>
		是否推荐：<input type="radio" name="hot" value="1">推荐
		<input type="radio" name="hot" checked="checked" value="0">不推荐
		<br>
		新闻类型：
		<select name="types">
			<c:forEach var="types" items="${requestScope.typesList }">
				<option value="${types.typeid }">${types.title }</option>
			</c:forEach>
		</select>
		<br>
		<!-- 正文：<textarea rows="8" cols="40" name="content"></textarea> -->
		
		<!-- 加载编辑器的容器 -->
	    <script id="container" name="content" style="height:300px;" type="text/plain"></script>
		<!-- 配置文件 -->
	    <script type="text/javascript" src="ueditor/ueditor.config.js"></script>
	    <!-- 编辑器源码文件 -->
	    <script type="text/javascript" src="ueditor/ueditor.all.js"></script>
	    <!-- 实例化编辑器 -->
	    <script type="text/javascript">
	        var ue = UE.getEditor('container');
	    </script>
		<br>
		关键字：<input type="text" name="keywords">
		<br>
		<input type="submit" value="发布">
		<input type="reset" value="重置">
	</form>
</body>
</html>